Skip to content

Add RU SNILS - #495

Open
talveg-1 wants to merge 1 commit into
arthurdejong:masterfrom
talveg-1:snils
Open

Add RU SNILS#495
talveg-1 wants to merge 1 commit into
arthurdejong:masterfrom
talveg-1:snils

Conversation

@talveg-1

@talveg-1 talveg-1 commented May 17, 2026

Copy link
Copy Markdown

Added an implementation for Russian SNILS numbers

@arthurdejong

Copy link
Copy Markdown
Owner

Hi @talveg-1,

Thanks for providing this. I have some comments though:

  • Copyright and license information is missing from the files
  • Some tests are failing due to formatting problems
  • It would be nice if there were real actual numbers in the tests. Do you know if there is a way to get some 10-20 real-world numbers?

I see the check digit algorithm can be found on
https://ru.wikipedia.org/wiki/Контрольное_число#Страховой_номер_индивидуального_лицевого_счёта_(Россия)

There does appear to be one additional check in that the check digit is only expected to be valid for numbers greater than 001-001-998 (if the translation I looked at is correct) implying that numbers lower than that don’t necessarily have to have a valid check digit.

The other issues are trivial to fix but if you can confirm the author name and that you agree to distribute this under the LGPLv2+ I can reasonably easily fix the other bits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants